<template>
  <div id="app">
    <div id="nav">

    </div>
    <router-view/>
  </div>
</template>
<script>
  export default {
    name:"App",
    watch:{
      $route(to,from){
        if (to.path!= "/login"){
            let obj = {
              name: to.name,
              title:to.meta.title
            }

            this.$store.commit("addTab",obj)
        }
      }
    }
  }

</script>
<style>
#nav{
  overflow-y: hidden;
}
</style>
